package com.question.business.post.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 岗位
 * </p>
 *
 * @author star
 * @since 2023-09-13
 */
@Getter
@Setter
@TableName("t_post")
public class Post implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 岗位名称
     */
    private String postName;

    /**
     * 启用状态(1:启用2:停用)
     */
    private Integer enabled;

    /**
     * 是否删除(0:否1:是)
     */
    @TableLogic
    private Integer isDeleted;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    /**
     * 创建用户
     */
    @TableField(fill = FieldFill.INSERT)
    private String createdUser;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updatedTime;

    /**
     * 更新用户
     */
    @TableField(fill = FieldFill.UPDATE)
    private String updatedUser;
}
